Skip to content

Comments

added a new method: pwn#61

Open
SiddharthShyniben wants to merge 3 commits intoletsgetrandy:masterfrom
SiddharthShyniben:master
Open

added a new method: pwn#61
SiddharthShyniben wants to merge 3 commits intoletsgetrandy:masterfrom
SiddharthShyniben:master

Conversation

@SiddharthShyniben
Copy link

Fixes my own issue #60; Read that for more info

if (typeof(angular) !== 'undefined') {
angular.module('brototype', []).factory('Bro', function() { return Bro; });
if (typeof (angular) !== 'undefined') {
angular.module('brototype', []).factory('Bro', function () { return Bro; });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

brobj[props[props.length - 1]] = value === undefined ? {} : value;
},
"pwn": function (path) {
const brobj = this.obj,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

// the deepest key is set to either an empty object or the value provided
brobj[props[props.length - 1]] = value === undefined ? {} : value;
},
"pwn": function (path) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

return new Bromise(this.obj, method, arguments);
},
"makeItHappen": function(key, value) {
"makeItHappen": function (key, value) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

},

"braceYourself": function(methodString) {
"braceYourself": function (methodString) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

},

"doYouEven": function(key, callback, options) {
"doYouEven": function (key, callback, options) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.


Bro.brototype = Bro.prototype = {
"isThatEvenAThing": function() {
"isThatEvenAThing": function () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

},

"hereComeTheErrors": function(callback) {
"hereComeTheErrors": function (callback) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

var returnValue = this.method.apply(this.object, this.args);
if (returnValue) {
(callback || function(){}).call(context || this.object, returnValue);
(callback || function () { }).call(context || this.object, returnValue);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.


Bromise.brototype = Bromise.prototype = {
"butWhenIdo": function(callback, context) {
"butWhenIdo": function (callback, context) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed double and single quotes.

@deltreey
Copy link
Contributor

  1. a lot of your committed code is unrelated to your changes
  2. you also don't have any tests.
  3. I don't really have a preference, but is pwn the best stylistic option here?
  4. Is it wise to mix in modern es6 stuff like you did with const?

@SiddharthShyniben
Copy link
Author

  1. That's just my IDE. I'll fix that when I have time
  2. I have. Didn't it get commited? I'll check later
  3. Just an idea
  4. I'm just used to es6.

I'll fix them when I can. A bit busy now

@tj-commits
Copy link

this is a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants