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
function namespace(sNamespace) | |
{ | |
var oObj = window; | |
var aElements = sNamespace.split("."); | |
var nElement = 0; | |
var nLenElements = aElements.length; | |
var sElement = null; | |
for(; nElement < nLenElements; nElement++) | |
{ | |
sElement = aElements[nElement]; |
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
function namespace(sNamespace) | |
{ | |
var oObj = window; | |
var aElements = sNamespace.split("."); | |
var nElement = 0; | |
var nLenElements = aElements.length; | |
var sElement = null; | |
for(; nElement < nLenElements; nElement++) | |
{ | |
sElement = aElements[nElement]; |
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 descriptor | |
**/ | |
var a = { | |
prop1 : 14 | |
} | |
var descriptorObj1 = Object.getOwnPropertyDescriptor(a, 'prop1'); |
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
do (window, document)-> | |
'use strict' | |
bDebug = false | |
oContainerDiff = null | |
nMinPercentage = 100 | |
bAsynchronous = false | |
nImagesLoaded = 0 | |
aCanvas = [] | |
fpLoop = _loop | |
proxyFloat = window.parseFloat |
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
(function(win, doc){ | |
function setup() | |
{ | |
} | |
function teardown() | |
{ | |
} | |
buster.testCase( "SampleTest", { | |
setUp: setup, | |
tearDown: teardown, |
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
## ItemView.coffee in the specs/coffee folder ## | |
define ["ItemView"], (ItemView) -> | |
### | |
Specs for ItemView | |
### | |
describe "Item View", -> | |
### | |
Common setup and teardown |
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
➜ 1.8pre git:(1.8pre) grunt | |
Running "selector:src/selector.js" (selector) task | |
<WARN> Unable to read "src/sizzle/sizzle.js" file (Error code: ENOENT). Use --force to continue. </WARN> | |
Aborted due to warnings. | |
# This error is caused by not having submodules pulled. Can be worked around by manually pulling submodules: | |
> git submodule update --init | |
# Next error is Windows only |
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
/** | |
* This piece of code has been created to safely extend classes/objects in Javascript. | |
* After talk with a great friend that was upset trying to extend a class/object that throws an error | |
* if some parameter in the constructor of the class/object is missing. | |
* | |
* var Search = function ( sToSearch ) { | |
* if ( sToSearch == null ) { // Check if sToSearch is null or undefined | |
* throw new Error( 'Search needs a string to search' ); | |
* } | |
* this.sToSearch = sToSearch; |
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
var CalendarLocale_EN = function() | |
{ | |
this.firstDayOfWeek = Calendar.SUNDAY; | |
}; | |
var CalendarWeekDays_EN = function() | |
{ | |
this["long"] = | |
[ | |
"Sunday", | |
"Monday", |
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
{ | |
"events":[ | |
{ | |
"id":1, | |
"day":25, | |
"month":3, | |
"year":2014, | |
"title":"Nisl ex vel qui illum.", | |
"description":"In minim sed consequat facilisis quis, dolore eum minim in dolore, feugait hendrerit euismod eum. Eros, iusto blandit nonummy luptatum.", | |
"thumbnail":"http://lorempixel.com/40/40/", |
OlderNewer