Printing RequireJS Module dependency tree when something goes wrong.
jQuery has a great API for working with DOM events - both native and custom. The great thing about its system is that you can also use it on regular objects, thus allowing you to quickly create private event systems for your application that don't rely on DOM elements. In this post, I will show … Continue reading Creating a Private Event Bus with jQuery
SPWidgets v2.5.2 released with bug fixes and setup for adding Unit Test Cases.
SPWidgets - purtuga.github.io/SPWidgets - is a project I started back in 2012 when I started to take advantage of the SharePoint platform to build custom web solutions for the teams I worked with. It initially served as a place to gather reusable User Interface (UI) components that could be quickly applied to multiple projects - … Continue reading SharePoint SPWidgets Converted to AMD Modules
In using Grunt on a large project, I wanted to speed up the build time by only copying files to the staging area that have changed. Unless I missed something, the Grunt Copy plugin always copies all files, regardless if they were changed or not. It does provide hooks that we can use in determining … Continue reading Grunt – How to Copy Only New Files
Every client side web developer or even the occasional advanced user knows what a closure is suppose to do and why it is important to keep all variable within a private scope. Snippets like this are common when working with jQuery: It allows you to code freely inside of the above IIFE (Immediately-Invoked Function Expression) … Continue reading How to Scope 3rd Party Cascade Style Sheets (CSS) with Grunt