Skip to content

Instantly share code, notes, and snippets.

@orafaelfragoso
Created May 5, 2017 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orafaelfragoso/bbd19b3cd07f91124925e96792610082 to your computer and use it in GitHub Desktop.
Save orafaelfragoso/bbd19b3cd07f91124925e96792610082 to your computer and use it in GitHub Desktop.
Angular 1.X Mysteries
if (!(this instanceof JQLite)) {
if (argIsString && element.charAt(0) !== '<') {
throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
}
return new JQLite(element);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment