With the lastest version of Require, a new config object was introduced, the shim.
http://requirejs.org/docs/api.html#config-shim
That allows Amplify to now be used within AMD projects.
Have Fun!
With the lastest version of Require, a new config object was introduced, the shim.
http://requirejs.org/docs/api.html#config-shim
That allows Amplify to now be used within AMD projects.
Have Fun!
| <snippet> | |
| <content><![CDATA[ | |
| console.log("${1:message}") | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>log</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.js</scope> | |
| </snippet> |
| _setupEvents: function() { | |
| this.$el.on( "click", "a.detail-content-trigger", this.openYear ); | |
| this.$el.on( "mousemove", _.throttle(this._checkMouse, 500)); | |
| }, | |
| _checkMouse: function( event ) { | |
| var winWidth = $( window ).width(), | |
| // Define some regions of the screen to toggle left and right scrolling. | |
| screenRegions = { | |
| Left: "0 300", | |
| Middle: "300 " + (winWidth - 300), |
| define(['jquery', "underscore"], function ( $, _ ) { | |
| (function ( $, window, document, undefined ) { | |
| // Create the defaults once | |
| var pluginName = 'zumbaHistory', | |
| defaults = { | |
| colors: [ "purple", "blue", "yello", "orange" ], | |
| extraScrollWidth: 400 | |
| }; | |
| module( "Product Viewer Personalization", | |
| { | |
| setup: function() { | |
| OTC.App = {}; | |
| OTC.App.publish = amplify.publish; | |
| OTC.App.on = amplify.subscribe; | |
| OTC.App.off = amplify.unsubscribe; | |
| this.pzn = new OTC.ProductViewer.Personalization(); | |
| } |
| var request = require( "request" ); | |
| var pluginFactory = function( _, anvil ) { | |
| return anvil.plugin( { | |
| // Name your plugin | |
| name: "anvil.cdnjs", | |
| // Activity list: "identify", "pull", "combine", "pre-process","compile", "post-process", "push", "test" | |
| activity: "identify", | |
| // Command all the things [ "-s, --somecommand", "Run this plugin for awesomesauce" ] | |
| commander: [ |
| var spawn = require( "child_process" ).spawn; | |
| var pluginFactory = function(_, anvil) { | |
| return anvil.plugin({ | |
| // Name your plugin | |
| name: "anvil.csharp", | |
| // Activity list: "identify", "pull", "combine", "pre-process","compile", "post-process", "push", "test" | |
| activity: "identify", | |
| // Command all the things [ "-s, --somecommand", "Run this plugin for awesomesauce" ] | |
| commander: [ |
| <!-- | |
| dd TTTTTTTTTT (( )) | |
| dd TT (( ))) | |
| /aaaaa\ p\/ppp\ p\/pppp\ /eeee\ n\ nnnn\ /dddd\dd TT /oooo\ (( ))) | |
| /aa aa pp pp pp pp ee ee nnn nn dd ddd TT /oo oo\ (( ))) | |
| aa aa pp pp pp pp eeeeeee/ nn nn dd dd TT oo oo (( ))) | |
| aa a/a\ pp pp/ pp pp/ ee\ nn nn dd ddd TT \oo oo/ (( ))) | |
| :: \aaaa/ aa pp\ppp/ pp\ppp/ \eeeee nn nn \dddd \d TT \oooo/ ( )) | |
| pp pp |