This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Object.prototype.watch polyfill | |
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch | |
* | |
* Known limitations: | |
* - `delete object[property]` will remove the watchpoint | |
* | |
* Based on Eli Grey gist https://gist.github.com/eligrey/384583 | |
* Impovements based on Xose Lluis gist https://gist.github.com/XoseLluis/4750176 | |
* This version is optimized for minification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example Plug-in Setup */ | |
(function($) { | |
if (!$.myExample) { // check your plugin namespace does not already exist | |
$.extend({ // this will allow you to add your plugin to the jQuery lib | |
myExample: function(elm, command, args) { | |
// keep in mind, right here you might want to do a class or data check to determine which direction this call is going | |
// for example, upon init the plugin on an element you may add the plugin name as a class, | |
// this way, when it's recalled, you can see it alrady has that class and might be calling a command, | |
// thus make an if statemnt to push the process through | |
return elm.each(function(index){ |